// 考勤
import Layout from '@/layout'

// layout-第一层!!  组件位于layout的二级路由里面
const attendRouter = {
    path:'/attendances',
    name:'attendances',
    component:Layout,
    children:[
        {
        path:'',  //什么都不写,默认是二级路由直接看component默认的index.vue
        component: () => import('@/views/attendances'),
        name:'attendances',
         // 路由元信息  存储数据的对象信息
         meta:{
            title:'考勤管理',  //左侧菜单名称
            icon:'考勤'  //左侧图标
         }
    },
    {
        path: 'archiving',
        component: () => import('@/views/attendances/historical'),
        name: 'archiving',
        hidden: true,
        meta: {
          title: '归档'
        }
      },
      {
        path: 'report/:month',
        component: () => import('@/views/attendances/report'),
        name: 'reports',
        hidden: true,
        meta: {
          title: '报表'
        }
      }  
]
}
export default attendRouter